package com.ophelisis.common.util;

import java.text.FieldPosition;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

@SuppressWarnings("serial")
public class SafeSimpleDateFormat extends SimpleDateFormat 
{
	//private static Log log = LogFactory.getLog(Cgi.class);
	
	public SafeSimpleDateFormat(String pattern) { 
		super(pattern); 
	}  
	public SafeSimpleDateFormat(String pattern, Locale locale) { 
		super(pattern, locale); 
	} 
	
	@Override 
	public synchronized Date parse(String source) throws ParseException 
	{ 
		return super.parse(source); 
	}  
	
	@Override 
	public synchronized StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { 
		return super.format(date, toAppendTo, fieldPosition); 
	} 
}